package com.jixiang.goods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jixiang.model.common.dtos.ResponseResult;
import com.jixiang.model.goods.dtos.CartDtos;
import com.jixiang.model.goods.dtos.GoodsAddDtos;
import com.jixiang.model.goods.dtos.GoodsDto;
import com.jixiang.model.goods.entity.GsGoodsInfo;

import java.io.IOException;
import java.util.List;

/**
 * (GsGoodsInfo)表服务接口
 *
 * @author makejava
 * @since 2023-10-23 20:55:53
 */
public interface GsGoodsInfoService extends IService<GsGoodsInfo> {

    ResponseResult adminAddGoods(GoodsAddDtos goodsDtos);


    ResponseResult adminGetGoodsList(int pageNum, int pageSize, String goodsSelect, String goodsState, String goodsName);

    ResponseResult appGetGoodsListByNew() ;

    ResponseResult appGetGoodsListByHot();

    ResponseResult addGoodsIndex();

    ResponseResult updateGoodsSearch();

    ResponseResult appGetGoodsInfoById(String id);

    ResponseResult appGetGoodsHotByGoodsId(String id, String type);


    String goodsInventory(List<CartDtos> cartDtosList);

    GoodsDto getGoodsInfoById(String id);

    ResponseResult wxGetGoodsListByHot();

    ResponseResult wxGetGoodsListBySelectId(int pageNum, int pageSize, int selectId);
}

